import Request from "../../core";
// 获取优惠券
export const shelfList = (data) => {
  // return Request.post("/couponAppOpen/coupon/pubAnonShelfList", data);
  return Request.post("/pub/couponMove/shelfList", data);
};
// 领取券
export const receiveCoupon = (data) => {
  return Request.post("/pub/couponMove/receiveCoupon", data, {
    isLoading: false,
  });
};
// 获取我的优惠券
export const getMyCoupon = (data) => {
  return Request.post("/pub/couponMove/getMyCoupon", data, {
    isLoading: false,
  });
};
// 获取券可用门店
export const getCouponUseShop = (data) => {
  return Request.post("/pub/couponMove/getCouponUseShop", data, {
    isLoading: false,
  });
};
// 获取优惠券详情
export const getCouponDetail = (data) => {
  return Request.get("/pub/couponMove/detail", data);
};
// 获取优惠券跳转门店id
export const getCouponJumpPubShopId = (data) => {
  return Request.post("/pub/couponMove/getCouponJumpPubShopId", data, {
    isLoading: false,
  });
};
// 下单获取优惠券接口
export const getDiscount = (data) => {
  return Request.post("/pub/couponMove/getDiscount", data, {
    isLoading: false,
  });
};
// 门店获取优惠券
export const getCoupon = (data) => {
  return Request.post("/pub/store/anon/getCoupon", data, {
    isLoading: false,
  });
};
//扫码领取券页面展示信息接口
export const getPrototypeInfo = (data) => {
  return Request.get("/couponApp/coupon/scanPageInfo", data);
};
